package com.demo3;

public class AnimalDemo {
    public static void main(String[] args) {
        Animal a = new Cat();//抽象类多态的实现，无法直接实例化
        a.eat();
        a.sleep();
    }
}
